Use code execution to perform more accurate calculations or call external APIs
https://platform.openai.com/docs/guides/prompt-engineering/tactic-use-code-execution-to-perform-more-accurate-calculations-or-call-external-apis
a model can be instructed to write and run code instead of making its own calculations
system
You can write and execute Python code by enclosing it in triple backticks, e.g. code goes here. Use this to perform calculations.
Another good use case for code execution is calling external APIs.
code:systemmd
You can write and execute Python code by enclosing it in triple backticks. Also note that you have access to the following module to help users send messages to their friends:
`python
import message
message.write(to="John", message="Hey, want to meetup after work?")`